/**
 * 
 */
package com.onewingu.gcs.server;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * @author er66
 *
 */
@PersistenceCapable
public class Token {

	@PrimaryKey
	private String username;

	@Persistent
	private String accessToken;
	
	@Persistent
	private String tokenSecret;

	public Token(String username, String accessToken, String tokenSecret) {
		this.username = username;
		this.accessToken = accessToken;
		this.tokenSecret = tokenSecret;
	}

	public String getToken() {
		return accessToken;
	}
	
	public String getUsername() {
		return username;
	}
	
	public String getTokenSecret() {
		return tokenSecret;
	}
}
